//导入element-plus 语言包
import ellang from "element-plus/es/locale/lang/en";
//导入目录下其他模块语言设置
const modules = import.meta.glob("./*.ts", {
  import: "default",
});

const language = {
  ...ellang,
};

for (const path in modules) {
  const module = await modules[path]();
  //以文件名为key
  language[path.replace("./", "").replace(".ts", "")] = module;
}
export default language;
